<template>
	<view class="city">
		<first-nav></first-nav>
		<city-content :currentCity="currentCity"></city-content>
		<tab></tab>
	</view>
</template>

<script>
	import tab from '../../components/tab.vue'
	import firstNav from '../../components/first-nav.vue'
	import cityContent from '../../components/cityContent.vue'
	export default {
		components:{
			tab,firstNav,cityContent
		},
		data() {
			return {
				currentCity:'上海'
			}
		},
		methods: {
			
		},
		onShow() {
			uni.getStorage({
				key:'city',
				success:(res)=>{
					this.currentCity = res.data
				},
				error(err){
					this.currentCity = '上海'
				}
			})
		}
	}
</script>

<style>
	page{
		width: 100%;
		height: 100%;
	}
.city{
	width: 100%;
	height: 100%;
	background-color: #000000;
	}
	
</style>
